{% extends 'web/layout/manage.html' %}
{% load static %}
{% block title %}wiki_add{% endblock title %}
{% block css %}
<style>
    .panel-default{
        margin-top:10px;
    }
    .panel-default .panel-heading {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }
    .panel-body{
        padding:0px;
    }
    .title_list{
        border-right:1px solid #dddddd;
        min-height: 500px;
    }
    .content{
        border-left:1px solid #dddddd;
        min-height: 600px;
        margin-left: -1px;
    }
    .errmsg{
        font:12pt;
        color:red;
    }
</style>
{% endblock css %}
{% block content %}

<!-- panel -->
<div class="container-fluid">    <!-- container-fluid -->
    <div class="panel panel-default">
        <div class="panel-heading">
            <div>
                <i class="fa fa-book" aria-hidden="true"></i> wiki文档
            </div>        
            <div>
                <a type="button" class="btn btn-success btn-xs" href={% url 'web:wiki_add' project_id=request.tracer.project.id %}>新建</a>
            </div>
            
        </div>
        <div class="panel-body">
            <div class="col-sm-3 title_list">
                <ul>目录</ul>
            
            </div>
            <div class="col-sm-9 content">
                
                <form method="POST" novalidate>
                    {% csrf_token %}
                    <div>
                        {% for field in objs %}
                            <div>
                            <label for="{{field.id_for_label}}">{{field.label}}</label>
                            </div>
                            {{field}}
                            <span class="error_msg">{{field.errors.0}}</span>
                        {% endfor %}
                        <button type="submit" class="btn btn-primary">提 交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
<div>
{% endblock content %}
{% block js %}{% endblock js %}